LucidImporter={}; (function(){function g(w){if(w&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[w])w=F[w];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D';Ca.push("li");ya+='',Ba.push("a"),ya++)}Ma+='"}while(0/g,">");do for(Ma=Pa.pop(),ya=0;ya"}while(za&&0V[wa])F.splice(ka,0,{s:V[wa],n:"a",v:D.TextAlign||"center"});else{for(var na=0;ka+na=Aa&&(ka=Ia)break;La=Ea.s;0< La-l&&(V+=e(na)+r(w,l,La),l=La);for(;null!=Ea&&Ea.s==La;)na[Ea.n]=Ea,Ea=aa[++ka];V+=e(na)}else if(Ra){if(Ra.e>Ia)break;l=Ra.e;do delete na[Ra.n],Ra=ra[++Aa];while(null!=Ra&&Ra.e==l);V+=r(w,La,l);La=l;0!=Pa.length||null!=Ea&&Ea.s==l||(aa.splice(ka,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ia,n:"dummy",v:""}))}else break}V+=r(null,null,null,!0);ua&&(l!=Ia&&(V+=e({dummy:1})+r(w,l,Ia)),V+=P(!0));return V}function m(w,F){G=!1;var D=null!=w.Text&&w.Text.t?w.Text:null!=w.Value&&w.Value.t?w.Value: null!=w.Lane_0&&w.Lane_0.t?w.Lane_0:null;null==D&&null!=w.State?w.State.t&&(D=w.State):null==D&&null!=w.Note?w.Note.t&&(D=w.Note):null==D&&null!=w.Title?w.Title.t&&(D=w.Title):w.t&&(D=w);null==D&&null!=w.TextAreas?null!=w.TextAreas.Text&&null!=w.TextAreas.Text.Value&&w.TextAreas.Text.Value.t&&(D=w.TextAreas.Text.Value):null==D&&null!=w.t0&&w.t0.t&&(D=w.t0);if(null!=D){if(null!=D.t){var u=D.t;u=u.replace(/\u2028/g,"\n");D=D.m;try{/ /.test(u)&&(LucidImporter.hasUnknownShapes=!0);for(var e=0;e/g,">")}if(null!=D.Value&&null!=D.Value.t)return D.Value.t=D.Value.t.replace(//g,">"),D.Value.t}return""}function h(w){return null!=w.Action?w.Action:w}function c(w){if(null!=w.Text){if(null!=w.Text.m)return w.Text.m}else if(null!=w.TextAreas){if(null!=w.TextAreas.Text&& null!=w.TextAreas.Text.Value&&null!=w.TextAreas.Text.Value.m)return w.TextAreas.Text.Value.m}else{if(null!=w.m)return w.m;if(null!=w.Title){if(null!=w.Title.m)return w.Title.m}else if(null!=w.State){if(null!=w.State.m)return w.State.m}else if(null!=w.Note&&null!=w.Note.m)return w.Note.m}return null}function a(w,F){w="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+lb:f(w)+k(w)+q(w)+t(w)+C(w)+I(w)+N(w)+K(w)+O(w))+S(w)+H(w)+Zb(mxConstants.STYLE_ALIGN,w.TextAlign,"center");lb= "";return w}function b(w,F,D,u,e,P){P=null==P?!1:P;var r="",p=!1,Z=!1;if(null!=w)if(P){P=w.split(";");w="";for(var aa=0;aap.Endpoint1.LinkX?-250:.9p.Endpoint1.LinkY?-250:.9p.Endpoint2.LinkX?-250:.9p.Endpoint2.LinkY?-250:.9p;)Z=r["m"+p],null!=Z&&(e=Pd(Z,e,w,D,u,F)),p++;null!=r.Text&&(e=Pd(r.Text,e,w,D,u,F));r=null!=P?P.TextAreas:w.TextAreas;null!= r.Message&&(e=Pd(r.Message,e,w,D,u,F))}w.Hidden&&(e.visible=!1);return e}function Pd(w,F,D,u,e,P){var r=2*(parseFloat(w.Location)-.5);isNaN(r)&&null!=w.Text&&null!=w.Text.Location&&(r=2*(parseFloat(w.Text.Location)-.5));P=m(w);var p=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var Z=ge;var aa=D;if(G)aa=lb;else{var V="13",wa="";if(null!=w&&null!=w.Value&&null!=w.Value.m){wa=A(w.Value.m);for(var ka=0;ka"));p.geometry.offset=0==ma||maBa?1:maua?1:Ca'];ka.push("");for(var na=null,ra=0;ra')}if(null!=Aa.n1){var Pa=V[Aa.p2].x,Ca=V[Aa.p2].y,ua=u,Na=e,Ka=new Qd(V[Aa.p1].x/u,V[Aa.p1].y/e,Aa.n1.x/u,Aa.n1.y/e,V[Aa.p2].x/u,V[Aa.p2].y/ e,Aa.n2.x/u,Aa.n2.y/e);if(2<=Ka.getSize()){Ka.getX(0);Ka.getY(0);Ka.getX(1);Ka.getY(1);Pa=Math.round(100*Pa/ua*100)/100;Ca=Math.round(100*Ca/Na*100)/100;ua=[];Na=[];for(var La=[],l=Ka.getSize(),Ia=0;Ia';var Ea=bb}else Ea=void 0;ka.push(Ea)}else ma=V[Aa.p2].x,Ba=V[Aa.p2].y,ma=100*ma/u,Ba=100*Ba/e,ma=Math.round(100*ma)/100,Ba=Math.round(100*Ba)/100,ka.push('');na=Aa.p2}ka.push("");ka.push("");ka.push("");D.push({shapeStencil:"stencil("+Graph.compress(ka.join(""))+")",FillColor:p,LineColor:Z,LineWidth:aa})}LucidImporter.stencilsMap[w]={text:F.Text,w:u,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y, stencils:D}}catch(Ra){console.log("Stencil parsing error:",Ra)}}function sc(w,F,D,u,e,P,r,p){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;r.insert(w);P=[w];D=D.clone();p.insertEdge(D,!1);w.insertEdge(D,!0);P.push(D);u.push(e.addCell(D,null,null,null,null))}function fb(w,F,D,u,e,P,r,p,Z){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;Z.insert(w);D=new mxCell("",new mxGeometry(D,u,0,0),"strokeColor=none;fillColor=none;"); D.vertex=!0;Z.insert(D);p=[D];e=e.clone();w.insertEdge(e,!0);D.insertEdge(e,!1);p.push(e);P.push(r.addCell(e,null,null,null,null))}function Sa(w,F,D,u,e,P){u.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";u.style+=b(u.style,e,P,u);F=m(e);u.vertex=!0;w=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+w+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;"); w.style+=b(w.style,e,P,w,G);w.geometry.relative=!0;w.geometry.offset=new mxPoint(5,-12);w.vertex=!0;u.insert(w)}function Wa(w,F,D,u,e,P,r,p){e="transparent"!=w?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";P.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";P.style+=b(P.style,r,p,P);P.value=m(r);P.vertex=!0;w=new mxCell(null,new mxGeometry(.5,0,.7*u*F,.7*u*D),e+w+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;"); w.geometry.relative=!0;w.geometry.offset=new mxPoint(-F*u*.35,10+(1-D)*u*.35);w.vertex=!0;w.style+=b(w.style,r,p,w,G);P.insert(w)}function Xc(w,F){return null!=w&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),w.includes(";"+F+"=")||w.substring(0,F.length+1)==F+"=")?!0:!1}function Rd(w,F){function D(u){u=Math.round(parseInt("0x"+u)*F).toString(16);return 1==u.length?"0"+u:u}return"#"+D(w.substr(1,2))+D(w.substr(3,2))+D(w.substr(5,2))}function Ie(w,F,D){var u=h(w),e=u.Properties, P=e.BoundingBox,r=Math.round(.75*P.w),p=Math.round(.75*P.h),Z=Math.round(.75*P.x+wc),aa=Math.round(.75*P.y+xc);null==w.Class||"GCPInputDatabase"!==w.Class&&"GCPInputRecord"!==w.Class&&"GCPInputPayment"!==w.Class&&"GCPInputGateway"!==w.Class&&"GCPInputLocalCompute"!==w.Class&&"GCPInputBeacon"!==w.Class&&"GCPInputStorage"!==w.Class&&"GCPInputList"!==w.Class&&"GCPInputStream"!==w.Class&&"GCPInputMobileDevices"!==w.Class&&"GCPInputCircuitBoard"!==w.Class&&"GCPInputLive"!==w.Class&&"GCPInputUsers"!==w.Class&& "GCPInputLaptop"!==w.Class&&"GCPInputApplication"!==w.Class&&"GCPInputLightbulb"!==w.Class&&"GCPInputGame"!==w.Class&&"GCPInputDesktop"!==w.Class&&"GCPInputDesktopAndMobile"!==w.Class&&"GCPInputWebcam"!==w.Class&&"GCPInputSpeaker"!==w.Class&&"GCPInputRetail"!==w.Class&&"GCPInputReport"!==w.Class&&"GCPInputPhone"!==w.Class&&"GCPInputBlank"!==w.Class||(p+=20);v=new mxCell("",new mxGeometry(Z,aa,r,p),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var V=null!=w.Class? w.Class:null!=u?u.Class:null;switch(V){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ka=null,na=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"
"),null,null,Math.abs(r-.125*p)):{width:0,height:0};wa?(ka=new mxCell("",new mxGeometry(r-.125*p,0,.125*p,p),"shape=curlyBracket;rounded=1;"),na=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;")):(ka=new mxCell("", new mxGeometry(0,0,.125*p,p),"shape=curlyBracket;rounded=1;flipH=1;"),na=new mxCell("",new mxGeometry(.125*p-Aa.height,Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);ka.vertex=!0;v.insert(ka);ka.style+=b(ka.style,e,u,ka);na.vertex=!0;na.value=ra;v.insert(na);na.style+=b(na.style,e,u,na,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var ma= "MainText",Ba=null,Pa="HeaderFill_",Ca="BodyFill_",ua=25,Na=25,Ka=0;if(null!=e.Lanes)Ka=e.Lanes.length;else if(null!=e.PrimaryLane){var La=function(gb){if(gb)32>gb?gb=32:208e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,u,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=b(v.style,e,u,v,G);v.style=v.style.replace("rotation=180;", "");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0x[l].style.indexOf(";align=")&&(x[l].style+="align=left;spacingLeft=5;");var Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll? new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ha-20-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style, e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ha),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,p-e.Selected*ha- 20-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,p-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=b(v.style,e,u,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ha=25;var Hb=3,Ha=(r+Hb)/ (e.Tabs+1),hb=new mxCell("",new mxGeometry(0,ha,r,p-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Hb,ha),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Hb,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Hb,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex= !0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,u,E[l]);Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"), E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+= Ua,T.style+=b(T.style,e,u,T));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ha=25;Hb=3;Ha=(r+Hb)/e.Tabs;hb=new mxCell("",new mxGeometry(0,ha,r,p-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Hb,ha),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Hb,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+= b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Hb,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"): new mxCell("",new mxGeometry(1,0,20,p-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"), T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];Hb=3;ha=25+Hb;Ha=80;zc=10;hb=new mxCell("",new mxGeometry(Ha,0,r-Ha,p),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,u,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Hb),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+ (l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G)):(x[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Hb),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,ha-Hb),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style, e,u,E[l]);Ua=J(e,u);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;", E.style+=Ua,E.style+=b(E.style,e,u,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(Ha,1,r-20-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ha,1,r-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,u,T));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;"; ha=p/e.Options;x=[];E=[];for(l=0;l',tc=e.Data.split("\n");var hf=e.AltRow&&"default"!=e.AltRow?"none"==e.AltRow?kb:U(e.AltRow):Rd(kb,.95);Oc=e.Header&&"default"!=e.Header?"none"==e.Header?hf:U(e.Header):Rd(kb,.8);if("full"==e.GridLines)Sc="border: 1px solid "+ Kd,be=19;else if("row"==e.GridLines)Sc="border-bottom: 1px solid "+Kd,be=19;else if("default"==e.GridLines||"column"==e.GridLines)Sc="border-right: 1px solid "+Kd;tc=tc.filter(function(gb){return gb});/^\{[^}]*\}$/.test(tc[tc.length-1])&&tc.pop();Fc=tc[0].split(",").length;var jf="";for(fa=0;fa';var kf=tc[l].split(",");for(fa=0;fa'+mxUtils.htmlEntities(kf[fa])+""}Ld+=""}Ld+="";v.value=Ld}catch(gb){console.log(gb)}break;case "UI2ButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];Ha=r/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,p),"strokeColor=none;"), x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,p),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2VerticalButtonBarBlock":v.style+=b(v.style,e,u,v);x=[];E=[];ha=p/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,l*ha,r,ha),""),E[l].vertex=!0,v.insert(E[l])): (x[l]=new mxCell("",new mxGeometry(0,l*ha,r,ha),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=b(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,r,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,u,E[l],G);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,u,v);x=[];E=[];Ha=r/e.Links;for(l=0;l',ve=null;for(l=0;l'}de+="";v.style=ve?ve:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(de):Base64.encode(de,!0))+";"}catch(gb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var nf=0==V.indexOf("Bracket")?"size=0;arcSize=50;":"",of=b(v.style,e,u,v,G);mb=ca(e,u,v);v.style="group;"+mb;var we=Math.min(.14*(mb?r:p),100),xe= new mxCell("",new mxGeometry(0,0,we,p),"shape=curlyBracket;rounded=1;"+nf+of);xe.vertex=!0;xe.geometry.relative=!0;var ye=new mxCell("",new mxGeometry(1-we/r,0,we,p),"shape=curlyBracket;rounded=1;flipH=1;"+nf+of);ye.vertex=!0;ye.geometry.relative=!0;v.insert(xe);v.insert(ye);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=b(v.style,e,u,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+= "verticalAlign=middle;");var kd=new mxCell("",new mxGeometry(0,0,8,p),"shape=partialRectangle;right=0;fillColor=none;");kd.geometry.relative=!0;kd.vertex=!0;kd.style+=b(kd.style,e,u,v,G);v.insert(kd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{mb=ca(e,u,v);v.style="group;"+mb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$", Ke(e.Stencil.id,e.Stencil));var Ob=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Ob.x/Ob.w,$f=-Ob.y/Ob.h;for(l=0;l'];Wc.push("");for(fa=0;fa'):Wc.push('');Wc.push(""); Wc.push("");Wc.push("");v.style="shape=stencil("+Graph.compress(Wc.join(""))+");";v.value=m(e);v.style+=b(v.style,e,u,v,G);break;case "InfographicsBlock":var rf=e.ShapeData_1.Value,Ae=e.ShapeData_2.Value-rf,Be=e.ShapeData_3.Value-rf,ee=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;kb=e["ShapeData_"+Xb].Value;kb="=fillColor()"==kb?e.FillColor:kb;var od=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+ ee+";strokeColor=none;fillColor="+U(od)+";"+ia(od,"fillOpacity");v.style+=b(v.style,e,u,v,G);var ab=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Be/Ae+";arcWidth="+ee/r*2+";strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity"));ab.style+=b(ab.style,e,u,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var sf=Be/Ae/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+ sf+";arcWidth="+2*ee/r+";strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=b(v.style,e,u,v,G);ab=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-sf)+";arcWidth="+2*ee/r+";strokeColor=none;flipH=1;fillColor="+U(od)+";"+ia(od,"fillOpacity"));e.Rotation+=Math.PI;ab.style+=b(ab.style,e,u,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+ U(od)+";"+ia(od,"fillOpacity"),v.style+=b(v.style,e,u,v,G),ab=new mxCell("",new mxGeometry(0,0,r*Be/Ae,p),"strokeColor=none;fillColor="+U(kb)+";"+ia(kb,"fillOpacity")),ab.style+=b(ab.style,e,u,ab,G),ab.vertex=!0,ab.geometry.relative=1,v.insert(ab)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var fe=e.Text.m,Ce=!1,De=!1;for(l=0;lv.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var tf=v.geometry,uf=new mxCell(m(e.Title),new mxGeometry(0,tf.height+4,tf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;"); uf.vertex=!0;v.insert(uf);v.style+=a(e.Title,G)}catch(gb){console.log(gb)}Ge(v,e);pa(v,e,D);e.Hidden&&(v.visible=!1);return v}function Ge(w,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&w.value){var u=w.geometry.width,e=w.geometry.height,P=u,r=e,p=0,Z=0;if(-90==D||-270==D){P=e;r=u;var aa=(e-u)/2;p=-aa/u;Z=aa/e}D+=mxUtils.toDegree(F.Rotation);var V=w.style.split(";").filter(function(ka){return 0>ka.indexOf("fillColor=")&& 0>ka.indexOf("strokeColor=")&&0>ka.indexOf("rotation=")}).join(";"),wa=new mxCell(w.value,new mxGeometry(p,Z,P,r),V+"fillColor=none;strokeColor=none;rotation="+D+";");w.value=null;wa.geometry.relative=!0;wa.vertex=!0;w.insert(wa)}}catch(ka){console.log(ka)}}function Je(w,F,D,u,e){function P(Kb,$b){var Xa="";try{for(var pb=0;pb'+(Xa[V[pb]]||" ")+"";pb= mxUtils.getSizeForString($b);Xa=g(Xa.Image||Xa["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Xa=new mxCell($b,new mxGeometry(0,0,pb.width+Ba,pb.height+Pa),ua+(Ca?Xa:""));Xa.vertex=!0;e[Kb]=Xa;u.addCell(Xa,aa)},p=F.OrgChartBlockType,Z=F.Location,aa=new mxCell("",new mxGeometry(.75*Z.x,.75*Z.y,200,100),"group");aa.vertex=!0;u.addCell(aa);var V=F.FieldNames,wa=F.LayoutSettings,ka=F.BlockItemDefaultStyle|| {props:{}},na=F.EdgeItemDefaultStyle,ra={},Aa=(w||Date.now())+"_";4==p&&(ka.props.LineWidth=0);var ma=[],Ba=25,Pa=40,Ca=!0,ua=b("",ka.props,{},aa,!0);0==p?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Pa+=54):1==p||2==p?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=p&&(Ca=!1);for(w=0;wwa.Properties.Order?1:0});for(p=0;p',''];D&&D.transparentEdgeLabels&&(ge=ge.replace("labelBackgroundColor=default;", "labelBackgroundColor=none;"));var e=[];null!=w.state?u(JSON.parse(w.state)):null==w.Page&&null!=w.Pages?u(w):e.push(w);w=Df();D=new mxCodec;for(var P=0;P"+Graph.compress(mxUtils.getXml(r))+"")}F.push("");LucidImporter.imgSrcRepl= null;return F.join("")}})();function VsdxExport(g){function y(H,J){var M={"[Content_Types].xml":"", "_rels/.rels":"", "docProps/app.xml":'Microsoft Visio15.0000